package generic.demo;

/**
 * 泛型类
 * 测试上下边界
 * 泛型的上下边界需要在类型形参定义
 *
 * @param <T>
 *
 * @author
 */
public class GenericClassBound<T extends Number> {

    private T t;

    public GenericClassBound() {

    }

    public GenericClassBound(T t) {
        this.t = t;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
